﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Divisionsmatch
{
    public class Bane
    {
        string _printOutput = string.Empty;

        public Bane()
        {
        }

        public Bane(string banenavn)
        {
            Navn = banenavn;
        }

        public string Navn { get; set; }

        public string printReport()
        {
            if (_printOutput != string.Empty)
            {
                return _printOutput;
            }
            else
            {
                StringBuilder output = new StringBuilder();

                string lin = "Bane " + Navn;

                output.AppendLine(lin);
                output.AppendLine("".PadLeft(lin.Length, '-'));

                return output.ToString();
            }
        }

        public string lavHTML()
        {
            StringBuilder output = new StringBuilder();

            output.AppendLine("<h3>Bane " + Navn + "</h3>");

            return output.ToString();
        }
    }
}